<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2017/7/7
  Time: 19:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title>显示</title>
    <link href="/css/index.css?ver=20170708" rel="stylesheet">
</head>
<body>
<table class="book">
    <caption>学生信息显示</caption>
    <tr>
        <th>ID编号</th>
        <th>姓名</th>
        <th>成绩</th>
        <th>操作</th>
    </tr>

    <c:forEach items="${list}" var="l">
        <tr>
            <td>${l.id}</td>
            <td>${l.name}</td>
            <td>${l.score}</td>
            <td><a href="delete/${l.id}.do" onclick="return confirm('确定删除:${l.name}')">删除</a></td>
        </tr>
    </c:forEach>

    <tr>
       <td colspan="100px">
           <a href="add.do">添加</a>
       </td>
    </tr>
</table>
</body>
</html>
